﻿    function CascadingViewModel() {
        this.DataID = ko.observableArray([]);
        this.SelectedDataID = ko.observable();
    }

var objVM = new CascadingViewModel();
ko.applyBindings(objVM);

function FetchData() {

    var selStepKindID = $("#StepKindID").val();
    var appbase = $("#base").attr("href");


    $.getJSON(appbase + "/TestStep/GetDataList/" + selStepKindID, null, function (data) {
        objVM.DataID(data.DataID);
    });

    if (arguments[0] != undefined) {
        objVM.SelectedDataID = arguments[0];
    }
}

